Skip to content

Conversation

@JohananOppongAmoateng
Copy link
Contributor

@JohananOppongAmoateng JohananOppongAmoateng commented Dec 21, 2025

Fix admin bugs: polymorphic inline file uploads and popup validation (#380, #612)

Issues Addressed

  1. Polymorphic inline forms ignoring multipart for FileFields Polymorphic inline form ignoring multipart for FileFields from Django 2.1 #380
  2. Admin add view popup breaks after initial validation error Admin: add view popup breaks if initial submit has validation error #612

Closes #380
Closes #612

@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.09%. Comparing base (5b4c237) to head (3db7b01).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #750      +/-   ##
==========================================
+ Coverage   83.98%   84.09%   +0.11%     
==========================================
  Files          27       27              
  Lines        1611     1610       -1     
  Branches      253      253              
==========================================
+ Hits         1353     1354       +1     
+ Misses        196      195       -1     
+ Partials       62       61       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JohananOppongAmoateng JohananOppongAmoateng marked this pull request as ready for review December 22, 2025 00:00
@JohananOppongAmoateng JohananOppongAmoateng self-assigned this Dec 22, 2025
@bckohan bckohan force-pushed the admin-bugs branch 2 times, most recently from 2ed9c7b to 7d1b8af Compare January 6, 2026 05:46
Copy link
Collaborator

@bckohan bckohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JohananOppongAmoateng It looks like the change to helpers.py was unnecessary because #380 appears to have been fixed upstream in Django. I removed it and added a full integration test for uploads in inline forms. Let me know if you think this is in error!

@bckohan bckohan merged commit 8faed6b into jazzband:master Jan 7, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin: add view popup breaks if initial submit has validation error Polymorphic inline form ignoring multipart for FileFields from Django 2.1

2 participants